<?php getView('modules/header',array('header' => $header)); ?>

<?php getView('modules/admin-menu'); ?>

<div id="content-wrapper" class="container-fluid">
	<div class="row">
		<?php getView('modules/admin-sidebar', array('menu_active',$menu_active)); ?>
		<div id="admin-content">
			<div class="col-xs-12">
				<!-- Show Alert -->
				<?php 
					if(isset($alert))
						getView('modules/admin-alert', $alert);
				?> 
				<div class="below-alert"></div>
				<div class="row">
					<div class="col-xs-12 col-smm-6 col-sm-5">
						<div id="add-category">
							<h4>Add New Category</h4>
							<?php 
								$attr = array(
									'id' => 'add-cat'
									);
								echo form_open('admin/categories/addCat', $attr);
							?>
								<div class="form-group mgt15">
									<label for="cat_name">Name</label>
									<input type="text" class="form-control" id="cat_name" name="cat_name">
								</div>
								<div class="form-group mgt15">
									<label for="cat_slug">Slug</label>
									<input type="text" class="form-control" id="cat_slug" name="cat_slug">
								</div>
								<div class="form-group mgt15">
									<div class="row">
										<div class="col-xs-12 col-sm-5">
											<label for="cat_name">Parent</label>
											<select id="cat_parent" name="cat_parent" class="select-tize form-control" placeholder="Parent" readonly>
												
											</select>
										</div>
									</div>
								</div>
								<div class="form-group mgt15">
									<label for="cat_description">Description</label>
									<textarea name="cat_description" id="cat_description" class="form-control">
										
									</textarea>
								</div>
								<div class="form-group mgt15">
									<input type="submit" class="btn btn-primary" value="Add New Category">
								</div>
							</form>
						</div>
					</div>
					<div class="col-xs-12 col-smm-6 col-sm-7">
						List
					</div>
				</div>
				<?php getView('modules/footer'); ?>
			</div>
		</div>
	</div>
</div>
<script>
	$(function(){
		var $select = $('.select-tize').selectize();
		/*var control = $select[0].selectize;
		control.setValue('publish');*/
	});
</script>
</body>
</html>